package com.ljchen.formalProject.enums;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(200,"操作成功"),
    ERROR_401(401,"shiro未授权"),
    ERROR(500,"服务器异常"),
    FORBIDDEN(1000,"没有相关权限")
    ;

    private Integer code;

    private String message;

    private ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
